#随机分配办公室
teachers=['A','B','C','D','E','F','G','H']
offices=[[],[],[]]

import random
for name in teachers:
    num =random.randint(0,2)
    offices[num].append(name)

i=1
for office in offices:
    print(f'办公室{i}的人数是{len(office)},老师分别是：')

    for name in office:
        print(name)
    i+=1
